<?php
echo "计算输入的两个整数加减乘除的结果\n";
echo "请输入两个整数，用英文逗号隔开\n";
$count=fscanf(STDIN,"%d,%d%s",$a,$b);
var_dump($count);
if($count<2){echo "请按规则 ";
} else if($count>2){
    echo "请按规则 ";
}else {
    $he=$a+$b;
    $che=$a-$b;
    echo "$a + $b = $he\n";
    echo "$a - $b = $che\n";
}





